import request from "@/utils/request";

export async function list(params: any) {
    return request(`/AllLinks/screeniframe/_query`, {
        method: 'GET',
        params,
    });
}
export async function queryNoPaging(params: any) {
    return request(`/AllLinks/tenant/_query/no-paging`, {
        method: 'GET',
        params,
    });
}
export async function query(params: any) {
    return request(`/AllLinks/visualization/_query/no-paging`, {
        method: 'GET',
        params,
    });
}

export async function remove(params?: any) {
    return request(`/screeniframe/_delete`, {
        method: 'POST',
        data: params,
    });
}

export async function saveIframe(params?: any) {
    return request(`/AllLinks/screeniframe/_save`, {
        method: 'POST',
        data: params,
    })
}
// export async function update(params: OpenApiItem) {
//     return request(`/AllLinks/open-api`, {
//         method: 'PATCH',
//         data: params,
//     })
// }

export async function authList(params?: any) {
    return request(`/AllLinks/autz-setting/_query/no-paging`, {
        method: 'GET',
        params,
    });
}

export async function permissionList(params?: any) {
    return request(`/AllLinks/permission/_query/no-paging?paging=false`, {
        method: 'GET',
        params
    });
}

export async function autz(params?: any) {
    return request(`/AllLinks/autz-setting/_query/no-paging`, {
        method: 'GET',
        params,
    });
}
